package asteroids.expressions;

import java.util.*;

import asteroids.types.Type;

public abstract class BasicExpression extends Expression {

	protected BasicExpression(int line, int column) {
		super(line, column);
	}

	@Override
	public final boolean hasAsSubExpression(Expression expression) {
		return expression == this;
	}
	
	@Override
	public List<String> getTypeCheckErrorsExpressions(List<String> typeErrors, Map<String, Type> globals) {
		return typeErrors;
	}

}
